<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="<?php echo $sf_user->getCulture() ?>" xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $sf_user->getCulture() ?>">
  <head>
    <?php include_http_metas() ?>
    <meta name="keywords" content="<?php include_slot('keywords', __('default keywords')) ?>"/>
    <title>
      <?php include_slot('title', 'Hugo Hamon - PHP 5 / Symfony Specialist and Trainer') ?>
    </title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php use_javascript('/js/jquery.min.js', 'first') ?>
    <?php use_stylesheet('highlight.css', 'first') ?>
    <?php use_stylesheet('main.css', 'first') ?>
    <?php use_stylesheet('content.css') ?>
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <link rel="alternate" type="application/atom+xml" title="<?php echo __('Latest blog posts') ?>" href="<?php echo url_for('rss_last_posts', array('sf_format' => 'atom'), true) ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php echo __('French and english latest posts') ?>" href="<?php echo url_for('rss_all_posts', array('sf_format' => 'atom'), true) ?>" />
    <?php include_component('blog', 'categoriesFeedsLinks') ?>
  </head>
  <body>
    <div class="global">
      <div class="top">
        <div class="logo">
          <h1>
            <?php echo link_to('<span>Hugo HAMON</span>', 'localized_homepage', array('sf_culture' => $sf_user->getCulture())) ?>
          </h1>
        </div><!-- end of div.logo -->
        <div class="horizontal-nav">
          <ul>
            <li><?php echo link_to(__('Blog'), 'blog') ?>&nbsp;<span>|</span></li>
            <li><?php echo link_to(__('Contact'), 'contact') ?>&nbsp;<span>|</span></li>
            <li><?php echo image_tag('globe.png', array('alt' => '')) ?>&nbsp; 
            <?php if ('en' == $sf_user->getCulture()) : ?>
              <?php echo link_to(__('French version'), 'localized_homepage', array('sf_culture' => 'fr')) ?>
            <?php else: ?>
              <?php echo link_to(__('English version'), 'localized_homepage', array('sf_culture' => 'en')) ?>
            <?php endif ?></li>
          </ul>
          <?php //include_component('search', 'form') ?>
        </div><!-- end of div.horizontal-nav -->
      </div><!-- end of div.top -->
      <div class="visualClear"></div>
      <?php if ('resume' != $sf_request->getParameter('section')) : ?>
      <h1 class="main-title">
        <?php include_slot('main_title', __('Welcome on my personal website')) ?>
      </h1>
      <?php endif ?>
      <div class="main">
        <div class="content">
          <?php echo $sf_content ?>
        </div><!-- end of div.content -->
      </div><!-- end of div.main -->
      <div class="sidebar">
        <div class="component-slot first">
          <h2><?php echo __('Categories') ?></h2>
          <?php include_component('blog', 'categories') ?>
        </div>
        <div class="component-slot">
          <h2><?php echo __('Blog roll') ?></h2>
          <?php include_component('blog', 'blogroll') ?>
        </div>
        <div class="component-slot last">
          <h2><?php echo __('Bookmarks') ?></h2>
          <?php include_component('blog', 'bookmarks') ?>
        </div>
      </div><!-- end of div.sidebar -->
      <div class="visualClear"></div>
      <div class="footer">
        <p>
          &copy; Copyright 2008-<?php echo date('Y') ?> - Hugo HAMON - <?php echo __('all rights reserved') ?>
        </p>
        <p>
          <?php echo __('Powered with %symfony_logo% and hosted by %servergrove_logo%', array(
            '%symfony_logo%' => link_to(image_tag('ads/symfony_button.gif', array('alt' => 'Symfony Framework')), 'http://www.symfony-project.org'),
            '%servergrove_logo%' => link_to(image_tag('ads/server_grove_button.gif', array('alt' => 'Server Grove Hosting')), 'http://servergrove.com') 
          )) ?>
        </p>
      </div><!-- end of footer -->
      <div class="end-of-page"></div>
    </div><!-- end of div.global -->
  </body>
</html>